export function getWebsocket(token:string) {
    const ws = new WebSocket('/ws',token)
ws.onopen = (e) => {
    console.log(e);
    ws.send("hello")
}
ws.onmessage = (e) => {
    console.log(e.data);
}
ws.onerror = (e) => {
    console.log(e);
}
}